In the else branch of the if statement before this one, we're assigning
*smallest = *widest anyway, so this if statement is never true. Move it
to the if block before instead, where it can apply.
widest->width = MAX (widest->width, char_pixels * priv->width_chars);
widest->x = widest->y = 0;
}
+
+ if (widest->width < smallest->width)
+ *smallest = *widest;
}
else
{
*smallest = *widest;
}
- if (widest->width < smallest->width)
- *smallest = *widest;
-
g_object_unref (layout);
}